import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'; // 引入 Element Plus
import { createPinia } from "pinia";
import 'element-plus/dist/index.css'; // 引入 Element Plus 的样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'; // 引入所有图标

const app = createApp(App)

// 全局注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

app.use(router)
    .use(createPinia())
    .use(ElementPlus)
    .mount('#app')
